package com.yongan.sales.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.yongan.sales.entity.SalesOrder;

public interface SalesOrderDao {

	SalesOrder queryById(String salesOrderId);
	
	List<SalesOrder> queryAll(@Param("offset")int offset,@Param("limit")int limit);
	
	int insertSalesOrder(SalesOrder salesOrder);
	
	int deleteSalesOrder(String salesOrderId);
	
	int updateSalesOrder(SalesOrder salesOrder);
	
	int queryCount();
	
	int isChecked(@Param("salesOrderId")String salesOrderId,@Param("value")String value);
	
	List<SalesOrder> querySalesOrderTree();
	
}
